Ext.define('Moodle.model.Course', {
    extend: 'Ext.data.Model',
    config: {
           idProperty: 'id',
        fields: [
            {name: "id", type: "auto" }, // isUnique: true
            {name: "fullname", type: "string"},
            {name: "shortname", type: "string"}            
        ],        
            proxy: {
            type: 'localstorage',
            id  : 'moodle-store-course'
        }
    }
    
});